<extend name="Public/base"/>

<block name="body">
	<!-- 标题栏 -->
	<div class="tab-wrap">
		<ul class="tab-nav nav">
			<li class="current"><a href="{:U('updateNickname')}">修改昵称</a></li>
			<li><a href="{:U('updatePassword')}">修改密码</a></li>
		</ul>
		<div class="tab-content">
			<!-- 修改密码表单 -->
			<form action="{:U('User/submitNickname')}" method="post" class="form-horizontal" autocomplete="off">
				<div class="form-item">
					<label class="item-label">密码：<span class="check-tips">（请输入密码）</span></label>

					<div class="controls">
						<input type="password" name="password" class="text input-large" autocomplete="off"/>
					</div>
				</div>
				<div class="form-item">
					<label class="item-label">昵称：<span class="check-tips">（请输入新昵称）</span></label>

					<div class="controls">
						<input type="text" name="nickname" class="text input-large" autocomplete="off"
						       value="{:get_username()}"/>
					</div>
				</div>
				<div class="form-item">
					<input type="hidden" name="old_nickname" class="text input-large" value="{:get_username()}"/>
					<button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 认</button>
					<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
				</div>
			</form>
		</div>
	</div>
</block>

<block name="script">
	<script src="__STATIC__/thinkbox/jquery.thinkbox.js?v={:SITE_VERSION}"></script>
</block>
